package com.tensquare.qa.dao;


import com.tensquare.qa.pojo.Comment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * 数据访问接口
 * @author Administrator
 *
 */
public interface CommentDao extends MongoRepository<Comment, String> {

//    Page<Comment> findByProblemid(String problemid, Pageable pageable);

    //根据问题id和回答id查询评论
    Page<Comment> findByProblemidAndReplyid(String problemid,String replayid, Pageable pageable);
}
